package com.example.module_word.widget


import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed


/**
 * @Author: sz_ijj
 * @Date: 2024-03-30 10:41
 **/
fun Modifier.noRippleClickable(enabled: Boolean = true, onClick: () -> Unit): Modifier =
    composed {
        this.clickable(
            enabled = enabled,
            interactionSource = remember {
                MutableInteractionSource()
            },
            indication = null
        ) { onClick() }
    }
